var express = require("express");
var bodyParser = require("body-parser");
var app = express();

app.post("/subscription", bodyParser.text(), function (req, res, next) {
    console.log("subscription", req.body);
});

app.use(express.static(__dirname + "/public"));

app.listen(process.env.PORT || 9000, function () {
    console.log("Server has been started.");
});
